<template>
  <div class="error_body" :style="{ backgroundImage: `url(${ImageFor404})` }">
    <div class="content">
      <div class="browser-bar">
        <span class="close button"></span>
        <span class="min button"></span>
        <span class="max button"></span>
      </div>
      <TypedText />
    </div>
  </div>
</template>

<script setup>
import TypedText from '@/views/Exception/components/typedText.vue';
import ImageFor404 from '@/images/404.jpg';

</script>

<style scoped>
.error_body {
  height: 100vh;
  width: 100vw;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
}

.content {
  width: 500px;
  height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: #333;
  padding: 45px 20px 20px;
  box-sizing: border-box;
  box-shadow: 0 0 25px rgba(0, 0, 0, .5);
  border-radius: 5px 5px 0 0;
}

.browser-bar {
  background: #f9f9f3;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 5px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
}

.button {
  display: inline-block;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.close {
  background: #fc635d;
}

.min {
  background: #fdbc40;
}

.max {
  background: #34c84a;
}
</style>